package com.yalpuz.entity;

import com.yalpuz.listener.EntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Calendar;

@Entity
@EntityListeners(EntityListener.class)
public class User extends BaseEntity {
	private String name;
	private String email;
	@Temporal(TemporalType.TIMESTAMP)
	private Calendar registerTime;

	public Calendar getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Calendar registerTime) {
		this.registerTime = registerTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
}
